import 'package:flutter/material.dart';

class IFPage extends StatelessWidget {
  const IFPage({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return DefaultTabController(
      length: 2,
      child: Scaffold(
          backgroundColor: Colors.white,
          appBar: AppBar(
            actions: <Widget>[
              IconButton(
                icon: Icon(Icons.info_outline),
                onPressed: () {},
              ),
            ],
            backgroundColor: Colors.blueAccent,
            elevation: 0,
            title: Text("CCTB新闻浏览器"),
            centerTitle: true,
          ),
          body: Container(
              decoration: BoxDecoration(
                image: new DecorationImage(
                    fit: BoxFit.cover,
                    image: ExactAssetImage('images/bg3.gif')),
              ),
              child: Container(
                width: MediaQuery.of(context).size.width,
                child: Column(
                  children: <Widget>[
                    Container(
                      height: 100,
                      width: 100,
                      child: Image.asset('images/ccb.png',
                          width: 100, height: 100),
                      alignment: Alignment.center,
                    ),
                    Container(
                      width: 200,
                      child: Text(
                        'cctb新闻浏览器是一款简易的新闻浏览器',
                        style: TextStyle(fontSize: 20.0, color: Colors.white),
                        textAlign: TextAlign.center,
                      ),
                    )
                  ],
                ),
              ))),
    );
  }
} //Text('cctb新闻浏览器是一款简易的新闻浏览器'),
